<?php

class submenu {

    private $id_submenu;
    private $submenu_nome;
    private $submenu_link;
    private $submenu_icone;
    private $submenu_show;
    private $id_menu;

    public function __get($propriedade) {
        return $this->$propriedade;
    }

    public function __set($propriedade, $valor) {
        $this->$propriedade = $valor;
    }

    public function __toString() {
        return "ID: " . $this->id_submenu . "<p>Nome: " . $this->submenu_nome . "<p>Icone: " . $this->submenu_icone . "<p>Link: " . $this->submenu_link . "<p>Show: " . $this->submenu_show . "<p>Menu: " . $this->id_menu;
    }

}
